package com.blockmeta.bbs.immodule.widget;

import android.content.Context;
import android.content.DialogInterface;
import android.view.View;

import com.blockmeta.bbs.businesslibrary.arouter.RouterHelper;
import com.blockmeta.bbs.businesslibrary.arouter.RouterPath;
import com.blockmeta.bbs.immodule.R;


public class IMGoLoginMsg extends IMSysPopup
{

	int mCircleId;

	public IMGoLoginMsg(Context pContext)
	{
		super(pContext);
	}

	@Override
	protected void onDismiss(DialogInterface dialog)
	{

	}

	@Override
	protected void initializeView(View pView)
	{
		m_tvTitle.setText("提示");
		m_editMsg.setVisibility(View.GONE);
		m_tvMsg.setText("需要登陆，是否跳转登陆页？");
		m_tvMsg.setVisibility(View.VISIBLE);
		m_btnCancel.setText(R.string.im_popup_resend_cancel);
		m_btnAction.setText(R.string.im_popup_clear_history_confirm);
	}

	@Override
	protected void onActionClick()
	{
		RouterHelper.startActivity(m_context, RouterPath.PHONE_LOGIN_ACTIVITY);
		dismissDialog();
	}

	public void show()
	{
		showDialog();
	}

}
